<?php
header("Content-Type: text/plain;charset=utf-8");
header("Access-Control-Allow-Origin:*");
header("Access-Control-Methods:POST,GET");

require_once("classes/skillOffer.php");

$skillOffer = new SkillOffer();
$query = $skillOffer->getAll();
// $result = mysqli_fetch_assoc($query);
while($result = mysqli_fetch_assoc($query)){
	$info[] = $result;//将结果一条条存入$adminInfo
}
echo json_encode($info,JSON_UNESCAPED_UNICODE);
?>